﻿using CardRegisterCollection.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _9jCardRegisterCollection
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            AntdUI.Localization.DefaultLanguage = "zh-CN";
            AntdUI.Config.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

            // 初始化数据库连接字符串
            PubConstant.ConnectionString = "Provider=Microsoft.ACE.OleDb.12.0;Data Source=" + Environment.CurrentDirectory + "\\Db\\main.mdb;Persist Security Info=False";

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            // 系统登录
            FrmLogin frmLogin = new FrmLogin();
            if (frmLogin.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new FrmMain());
            }
        }
    }
}
